import { getNavListAPI1 } from '@/api/index.js'
export default {
  // 开启命名空间
  namespaced: true,

  state: {
    navList: []
  },
  mutations: {
    GETNAVLIST(state, data) {
      state.navList = data
    }
  },
  actions: {
    async getNavList({ commit }) {
      const { data: res } = await getNavListAPI1()
      commit('GETNAVLIST', res.data)
    }
  },
}
